package com.app.designpattern.designprinciples.openclose;

/**
 * USER: zjw
 * DATA: 2019/4/4 0004
 * TIME: 下午 2:30
 */
public class AndroidBook implements IBook {
    private String name;
    private Integer id;
    private Double price;

    public AndroidBook(Integer id,String name,  Double price) {
        this.name = name;
        this.id = id;
        this.price = price;
    }

    @Override
    public String getName() {

        return this.name;
    }

    @Override
    public Integer getId() {
        return this.id;
    }

    @Override
    public Double getPrice() {
        return this.price;
    }
}
